﻿using EFCoreDemo.Models;

namespace EFCoreDemo.Services; 

public interface IDemoService {
    Task<DemoModel> AddAsync(DemoModel demoModel);

    Task<DemoModel> UpdateAsync(DemoModel demoModel);

    Task<DemoModel> DeleteAsync(int id);

    Task<IEnumerable<DemoModel>> ListAsync();
}